<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>添加商品</title>
    <script src="/jquery/jquery-3.2.1.min.js"></script>
    <script src="/layui/layui.js"></script>
    <link rel="stylesheet" href="/layui/css/layui.css">
    <link rel="stylesheet" href="/css/product/productManage/addProduct/product-addProduct.css">
    <style>

    </style>
</head>
<body>
<div class="box layui-form">
    <div class="list">
        <div class="list-left">
            <div class="list-left-left"></div>
            <p class="list-left-right">添加商品</p>
        </div>
        <div class="list-right">
            <div class="list-right-left layui-btn layui-icon layui-icon-refresh" onclick="refresh()">&nbsp;刷新</div>
            <div class="list-right-right layui-btn layui-icon layui-icon-left" id="goBack">返回</div>
        </div>
    </div>
    <div class="box2">
        <div class="layui-row" style="width: 800px; height: 80px; text-align: center; margin-top: 30px; margin-left: 220px;">
            <div style="float: left;">
                <div class="layui-row">
                    <label class="layui-form-label">商品分类:</label>
                    <div class="layui-input-inline">
                        <input id="categroyName" type="tel" name="categroyName" lay-verify="required|phone" autocomplete="off" class="layui-input" style="width: 300px;" disabled>
                        <input id="categroyId" type="hidden" name="categroyId" lay-verify="required|phone" autocomplete="off" class="layui-input" style="width: 300px;" disabled >
                    </div>
                </div>
            </div>
            <div style="float: right; padding-right:350px;" onclick="classification()">                     <!--选择-->
                <i class="layui-icon layui-icon-layer" style="font-size: 30px; float: right;"></i>
            </div>

        </div>
        <div style="padding-left: 340px; margin-bottom: 20px;" class="layui-row" >
            <span id="addChoicespan1"></span><span id="addChoicespan2" style="color: red;"></span>
        </div>
        <div style="width: 800px; height: 80px; text-align: center; margin-left: 25px;margin-top: -20px">
            <div class="layui-inline">
                <label class="layui-form-label">商品名称:</label>
                <div class="layui-input-inline">
                    <input id="productName" type="tel" name="productName" lay-verify="required|phone" autocomplete="off" class="layui-input" style="width: 300px;">
                </div>
            </div>
        </div>

        <div style="width: 800px; height: 80px;margin-left: 220px;">
            <div class="layui-inline">
                <label class="layui-form-label">商品图片:</label>
                <div class="layui-input-inline">
                    <input type="button" id="upLoad"  name="shangchuan" lay-verify="required|phone" autocomplete="off" class="layui-btn" value="上传图片" >
                    <input id="mainImage" type="text"  name="mainImage" hidden>
                </div>
            </div>
        </div>

        <div style="width: 800px; height: 80px;margin-left: 220px;">
            <div class="layui-inline">
                <label class="layui-form-label">预览图:</label>
                <div class="layui-input-inline">
                    <div id="imgurls" style="width: 400px;height: 140px;border: 1px solid #eee;overflow: auto;" class="layui-upload-list uploader-list"></div>
                </div>
            </div>
        </div>

        <div class="body-box2-div1"  style="width: 800px; height: 100px; text-align: center; margin-left: 220px;margin-top:90px;">
            <div class="layui-form-item layui-form-text">
                <label class="layui-form-label">商品介绍:</label>
                <div class="layui-input-block">
                    <textarea id="productDescription" name="productDescription" placeholder="请输入内容" class="layui-textarea" style="width: 400px;"></textarea>
                </div>
            </div>
        </div>

        <div class="body-box2-div1" style="margin-top:30px;">
            <div class="layui-form-item layui-form-text">
                <label class="layui-form-label">商品标签:</label>
                <div class="layui-input-block">
                    <textarea id="productLabel" name="productLabel" placeholder="请输入内容" class="layui-textarea" style="width: 400px;"></textarea>
                </div>
            </div>
        </div>

        <div class="body-box2-div2" style="margin-top: 30px;">
            <div class="layui-inline">
                <label class="layui-form-label">商品货号:</label>
                <div class="layui-input-inline">
                    <input id="productCode" name="productCode" type="tel" lay-verify="required|phone" autocomplete="off" class="layui-input" style="width: 300px;">
                </div>
            </div>
        </div>

        <div class="body-box2-div2">
            <div class="layui-inline">
                <label class="layui-form-label">商品售价:</label>
                <div class="layui-input-inline">
                    <input id="currentpriceProduct" type="tel" name="currentpriceProduct" lay-verify="required|phone" autocomplete="off" class="layui-input" style="width: 300px;">
                    <input id="originalpriceProduct" type="text" name="originalpriceProduct" hidden>
                </div>
            </div>
        </div>
        <div class="body-box2-div2">
            <div class="layui-inline">
                <label class="layui-form-label">关键字:</label>
                <div class="layui-input-inline">
                    <input id="searchKeywords" type="tel" name="searchKeywords" lay-verify="required|phone" autocomplete="off" class="layui-input" style="width: 300px;">
                </div>
            </div>
        </div>
        <div class="body-box2-div3">
            <div class="layui-form-item">
                <label class="layui-form-label">新品推荐:</label>
                <div class="layui-input-block">
                    <input type="radio" lay-filter="recommend" name="recommend" value="新品" title="新品">
                    <input type="radio" lay-filter="recommend" name="recommend" value="推荐" title="推荐" checked>
                </div>
            </div>
        </div>
        <div class="body-box2-div3">
            <div class="layui-form-item">
                <label class="layui-form-label">可用优惠券:</label>
                <div class="layui-input-block">
                    <input type="radio" lay-filter="discount" name="discount" value="是" title="是">
                    <input type="radio" lay-filter="discount" name="discount" value="否" title="否" checked>
                </div>
            </div>
        </div>
        <div class="body-box2-div3">
            <div class="layui-form-item">
                <label class="layui-form-label">服务保证:</label>
                <div class="layui-input-block">
                    <input type="radio" lay-filter="ensure" name="ensure" value="无忧退货" title="无忧退货">
                    <input type="radio" lay-filter="ensure" name="ensure" value="快速退款" title="快速退款">
                    <input type="radio" lay-filter="ensure" name="ensure" value="免费包邮" title="免费包邮" checked>
                </div>
            </div>
        </div>
        <div style="width: 800px; height: 80px; margin-left: 300px;">
            <input value="提交商品" class="layui-btn" id="SubmitProduct" style="display: none"/>
            <input type="button" class="layui-btn" value="提交商品" id="queding">
        </div>
        <input type="text" id="currentTime" hidden/>
    </div>
</div>

<p id="title" style="display: none;">添加商品</p>

</body>
<script src="/js/product/productManage/addProduct/product-addProduct.js"></script>
</html>